package com.nlp.visualization.core.seg;

/**
 * 工具类：获取对应的分词方法
 */
public class SegmentTypeUtils {

    public static SegmentType getSegmentType(String type) {

        for (SegmentType s : SegmentType.values()) {
            if (type.toUpperCase().equals(s.toString().toUpperCase())) {
                return s;
            }
        }
        return null;

    }

}
